'use strict';
/**
 * generate view file
 */
var path = require('path');
var util = require('util');
var yeoman = require('yeoman-generator');
var fs = require('fs');

 /**
  * Constructor
  */
 var Generator = module.exports = function()
 {
     yeoman.generators.NamedBase.apply(this, arguments);
     // we have a fix location for the views files
     this.sourceRoot(path.join(__dirname, '../templates/common/app/server/views'));

 };
/**
 * extending
 */
util.inherits(Generator, yeoman.generators.NamedBase);
/**
 * generate the view file
 */
Generator.prototype.createViewFiles = function()
{
    this.template(
        'base.html',
        path.join(
            this.env.options.appPath,
            'views',
            this.name.toLowerCase() + '.html'
        )
   );
};
